<template>
  <!--最终检验-->
  <div class="app-container">
    <h1 style="text-align: center;">检验报告单</h1>
    <table class="jc_table jc_table_detail">
      <tr>
        <td>切割刀号</td>
        <td colspan="2">{{form.cutNo}}</td>
        <td>单晶编号</td>
        <td colspan="2">{{form.crystalNo}}</td>
        <td>货架号/层</td>
        <td>{{form.shelfNumber}}</td>
        <td>理论片数</td>
        <td>{{form.theorySlice}}</td>
        <td>线径</td>
        <td>{{form.lineDiameter}}</td>
        <td>槽轮系数</td>
        <td>{{form.groovesRatio}}</td>
      </tr>
      <tr>
        <td rowspan="2">清洗送检片数</td>
        <td>第1批</td>
        <td>第2批</td>
        <td>第3批</td>
        <td>第4批</td>
        <td>第5批</td>
        <td>第6批</td>
        <td>第7批</td>
        <td>第8批</td>
        <td>第9批</td>
        <td>总送验数</td>
        <td colspan="2">送验人/时间</td>
        <td></td>
      </tr>
      <tr>
        <td>{{form.sendcheck1}}</td>
        <td>{{form.sendcheck2}}</td>
        <td>{{form.sendcheck3}}</td>
        <td>{{form.sendcheck4}}</td>
        <td>{{form.sendcheck5}}</td>
        <td>{{form.sendcheck6}}</td>
        <td>{{form.sendcheck7}}</td>
        <td>{{form.sendcheck8}}</td>
        <td>{{form.sendcheck9}}</td>
        <td>{{form.sendcheckNum}}</td>
        <td colspan="2">送验人/时间</td>
        <td>{{form.sendchecker}}/{{form.sendchecktime}}</td>
      </tr>
      <tr>
        <td colspan="14" style="text-align: center;font-weight: 600">检验记录</td>
      </tr>
      <tr>
        <td rowspan="4">分选仪检验</td>
        <td class="font_bold">A(合格)</td>
        <td>崩</td>
        <td>脏</td>
        <td>尺寸</td>
        <td>厚度不良</td>
        <td>TTV</td>
        <td>翘曲度</td>
        <td>弯曲度</td>
        <td>缺口</td>
        <td>线痕</td>
        <td>孔</td>
        <td>隐裂</td>
        <td>测定不能</td>
      </tr>
      <tr>
        <td>{{form.apass}}</td>
        <td>{{form.chip}}</td>
        <td>{{form.dirt}}</td>
        <td>{{form.size}}</td>
        <td>{{form.thickbig}}</td>
        <td>{{form.ttv}}</td>
        <td>{{form.qiaoqudu}}</td>
        <td>{{form.wanqudu}}</td>
        <td>{{form.breakage}}</td>
        <td>{{form.roughness}}</td>
        <td>{{form.pinhole}}</td>
        <td>{{form.crack}}</td>
        <td>{{form.unmeasurable}}</td>
      </tr>
      <tr>
        <td class="font_bold">B(合格)</td>
        <td>A-</td>
        <td>倒篮</td>
        <td>叠片</td>
        <td>裂片</td>
        <td colspan="2" class="font_bold">操作员</td>
        <td colspan="2" class="font_bold">分选仪</td>
        <td colspan="2" class="font_bold">班组</td>
        <td colspan="2" class="font_bold">日期/时间</td>
      </tr>
      <tr>
        <td>{{form.bpass}}</td>
        <td>{{form.areduce}}</td>
        <td>{{form.daolan}}</td>
        <td>{{form.diepian}}</td>
        <td>{{form.fragment}}</td>
        <td colspan="2">{{form.fxyTester}}</td>
        <td colspan="2">{{form.fxyNo}}</td>
        <td colspan="2">{{form.fxyClass}}</td>
        <td colspan="2">{{form.fxyTime}}</td>
      </tr>
      <tr>
        <td class="font_bold">合格片数</td>
        <td colspan="6">{{form.passnum}}</td>
        <td colspan="2" class="font_bold">不合格片数</td>
        <td colspan="5">{{form.notpassnum}}</td>
      </tr>
      <tr>
        <td rowspan="4">外观检验</td>
        <td>粘胶面角崩</td>
        <td>粘胶面面崩</td>
        <td>入刀口角崩</td>
        <td>入刀口面崩</td>
        <td>脏</td>
        <td>花</td>
        <td>油污</td>
        <td>黑边</td>
        <td>水印</td>
        <td>胶</td>
        <td>线痕</td>
        <td>白斑</td>
        <td>皮带印</td>
      </tr>
      <tr>
        <td>{{form.zjmjb}}</td>
        <td>{{form.zjmmb}}</td>
        <td>{{form.rdkjb}}</td>
        <td>{{form.rdkmb}}</td>
        <td>{{form.zang}}</td>
        <td>{{form.hua}}</td>
        <td>{{form.youwu}}</td>
        <td>{{form.heibian}}</td>
        <td>{{form.shuiyin}}</td>
        <td>{{form.jiao}}</td>
        <td>{{form.xianhen}}</td>
        <td>{{form.baibang}}</td>
        <td>{{form.pidaiyin}}</td>
      </tr>
      <tr>
        <td>不平</td>
        <td>孔</td>
        <td>裂</td>
        <td>缺口</td>
        <td>立面黑</td>
        <td>划痕</td>
        <td>头尾</td>
        <td>灰皮</td>
        <td>色差</td>
        <td>亮边</td>
        <td>黑道</td>
        <td>检损</td>
        <td></td>
      </tr>
      <tr>
        <td>{{form.buping}}</td>
        <td>{{form.kong}}</td>
        <td>{{form.lie}}</td>
        <td>{{form.quekou}}</td>
        <td>{{form.limianhei}}</td>
        <td>{{form.huahen}}</td>
        <td>{{form.touwei}}</td>
        <td>{{form.huipi}}</td>
        <td>{{form.secha}}</td>
        <td>{{form.liangbian}}</td>
        <td>{{form.heidao}}</td>
        <td>{{form.jiansun}}</td>
        <td></td>
      </tr>
      <tr>
        <td rowspan="2">参数检验</td>
        <td>薄</td>
        <td>厚</td>
        <td>P高</td>
        <td>P低</td>
        <td>TTV</td>
        <td>WARP</td>
        <td>同心度异常</td>
        <td>其他</td>
        <td class="font_bold">检验员</td>
        <td class="font_bold" colspan="2">班组</td>
        <td class="font_bold" colspan="2">日期/时间</td>
      </tr>
      <tr>
        <td>{{form.bao}}</td>
        <td>{{form.hou}}</td>
        <td>{{form.pgao}}</td>
        <td>{{form.pdi}}</td>
        <td>{{form.csTtv}}</td>
        <td>{{form.csWarp}}</td>
        <td>{{form.csTxdyc}}</td>
        <td>{{form.qita}}</td>
        <td colspan="2">{{form.canshuTester}}</td>
        <td colspan="2">{{form.canshuClass}}</td>
        <td colspan="2">{{form.canshuTesttime}}</td>
      </tr>
      <tr>
        <td class="font_bold">合格片数</td>
        <td colspan="6">{{form.canshuHgps}}</td>
        <td colspan="2" class="font_bold">不合格片数</td>
        <td colspan="5">{{form.canshuBhgps}}</td>
      </tr>
      <tr>
        <td>备注</td>
        <td colspan="13">{{form.beizhu}}</td>
      </tr>
    </table>
  </div>
</template>

<script>

  import * as Finaltest from "../../api/report/finaltest";

  export default {
    components: {

    },
    data() {
      return {
        form: {},
      }

    },
    created() {
      this.fetchData();
    },
    methods: {
      fetchData() {
        Finaltest.detailRow(this.$route.query.id).then(data => {
          this.form = data.msg;
        });

      },
    },
    computed: {
      tableHeight() {
        const filterHeight = 28
        var tableHeight = this.getTableHeight(filterHeight)
        return tableHeight;
      }
    }
  }
</script>
